CatchEvent OnResult( $userName,$flagConfirm ) # Player event
IF( ( $flagConfirm & 2 ) == CONF_CONFIRMED )
THEN
SetCurrentPlayerVar( "race_status","off" );
$plyNum_finished=$plyNum_finished+1;
ENDIF
IF( ( $flagConfirm & 16 ) == CONF_PENALTY_30 )
THEN
GlobalMsg ( "^3INFO: " . GetCurrentPlayerVar( "NickName") . "^7 is fined for 5 euros" );
$new_player_bank_saldo = GetCurrentPlayerVar( "player_bank_saldo" ) - 5;
SetCurrentPlayerVar( "player_bank_saldo",ToNum( $new_player_bank_saldo ) );
SetStoredValue( $userName . "player_bank_saldo", GetCurrentPlayerVar( "player_bank_saldo" ) );
$prices=$prices+5;
ENDIF
IF( ( $flagConfirm & 32 ) == CONF_PENALTY_45 )
THEN
GlobalMsg ( "^3INFO: " . GetCurrentPlayerVar( "NickName") . "^7 is fined for 10 euros" );
$new_player_bank_saldo = GetCurrentPlayerVar( "player_bank_saldo" ) - 10;
SetCurrentPlayerVar( "player_bank_saldo",ToNum( $new_player_bank_saldo ) );
SetStoredValue( $userName . "player_bank_saldo", GetCurrentPlayerVar( "player_bank_saldo" ) );
$prices=$prices+10;
ENDIF
IF( ( $flagConfirm & 4 ) == CONF_PENALTY_DT )
THEN
GlobalMsg ( "^3INFO: " . GetCurrentPlayerVar( "NickName") . "^7 is fined for 15 euros" );
$new_player_bank_saldo = GetCurrentPlayerVar( "player_bank_saldo" ) - 15;
SetCurrentPlayerVar( "player_bank_saldo",ToNum( $new_player_bank_saldo ) );
SetStoredValue( $userName . "player_bank_saldo", GetCurrentPlayerVar( "player_bank_saldo" ) );
$prices=$prices+15;
ENDIF
IF( ( $flagConfirm & 8 ) == CONF_PENALTY_SG )
THEN
GlobalMsg ( "^3INFO: " . GetCurrentPlayerVar( "NickName") . "^7 is fined for 20 euros" );
$new_player_bank_saldo = GetCurrentPlayerVar( "player_bank_saldo" ) - 20;
SetCurrentPlayerVar( "player_bank_saldo",ToNum( $new_player_bank_saldo ) );
SetStoredValue( $userName . "player_bank_saldo", GetCurrentPlayerVar( "player_bank_saldo" ) );
$prices=$prices+20;
ENDIF
SetStoredValue( "RFM_" . "prices", $prices );
DelayedCommand( 60, Finish_price );
EndCatchEvent
CASE "!ban":
IF ( UserIsAdmin( $userName ) == 1 )
THEN
privMsg( langEngine( "%{main_ban}%", GetCurrentPlayerVar( "NickName" ), GetPlayerVar( $argv, "NickName" ) ) );
cmdLFS( "/ban " . $argv . " 1" );
ENDIF
BREAK;
#Syntax: ss mm hh dayofweek dd MM YYYY
Event OnLapperStart()
RegisterScheduleAction( "* 0 * * * * *", Auto_message );
RegisterScheduleAction( "* 5 * * * * *", Auto_message );
RegisterScheduleAction( "* 10 * * * * *", Auto_message );
RegisterScheduleAction( "* 15 * * * * *", Auto_message );
RegisterScheduleAction( "* 20 * * * * *", Auto_message );
RegisterScheduleAction( "* 25 * * * * *", Auto_message );
RegisterScheduleAction( "* 30 * * * * *", Auto_message );
RegisterScheduleAction( "* 35 * * * * *", Auto_message );
RegisterScheduleAction( "* 40 * * * * *", Auto_message );
RegisterScheduleAction( "* 45 * * * * *", Auto_message );
RegisterScheduleAction( "* 50 * * * * *", Auto_message );
RegisterScheduleAction( "* 55 * * * * *", Auto_message );
EndEvent
Sub Auto_message()
cmdLFS( "/msg [YOUR MESSAGE HERE]" );
Ensub